package model;

import java.util.ArrayList;

import model.relation.*;

/**
 * 
 * Description: 用户权限级别Role的实体类，例如权限级别有：管理员，普通用户等。
 * @since  2009/2/23
 * @author ashen
 * 
 */
public class Role {
	private Integer id;
	private String name;
	private String description;
	private ArrayList<Operation> operations;
	
	
	public Role(Integer id, String name, String description,
			ArrayList<Operation> operations) {
		super();
		this.id = id;
		this.name = name;
		this.description = description;
		this.operations = operations;
	}
	public Role() {
		super();
		// TODO Auto-generated constructor stub
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public ArrayList<Operation> getOperations() {
		return operations;
	}
	public void setOperations(ArrayList<Operation> operations) {
		this.operations = operations;
	}
}
